package com.example.djgzhiyong.androidlevelup

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_view_move.*
import android.animation.ObjectAnimator


class ViewMoveActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_view_move)

//        (customView as CustomView).someScroolTo(400,0)


        val mObjectAnimator = ObjectAnimator.ofFloat(customView,"scaleY",1.0f,1.5f)//Y轴从零拉伸
        mObjectAnimator.duration = 3000
        mObjectAnimator.start()
    }

}